﻿@model IEnumerable<CloudFranceTriple.Models.GameSet>

@foreach (var item in Model)
{
    <tr>
        <td style="border: 1px solid #fffffe; width: 20%; border-radius: 8px;">
            <ul style="list-style-type: none;">
                <li>
                    @Html.DisplayFor(modelItem => item.NameGame)
                </li>
                <li>
                    @Html.DisplayFor(modelItem => item.NicknameGame)
                </li>
                <li>
                    <a href="@item.OfficialWebSiteGame" target="_blank">
                        <img src="@item.LogoUrlGame" alt="@item.NameGame" title="@item.NameGame" width="149" height="82" style=" border-radius: 8px;"/>
                    </a>
                </li>
                <li>
                    <a href="@item.PublisherSet.OfficialWebSitePublisher" target="_blank">@Html.DisplayFor(modelItem => item.PublisherSet.NamePublisher)</a>
                </li>
                <li>
                    @Html.DisplayFor(modelItem => item.DescriptionGame)
                </li>
                @if (User.IsInRole("RoleAdminGame"))
                {
                    <li>
                        @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonDetails, "Details", new { id = item.Id }) |
                        @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonEdit, "Edit", new { id = item.Id }) |
                        @Html.ActionLink(CloudFranceTriple.WebRole.Properties.Resources.ButtonDelete, "Delete", new { id = item.Id })
                    </li>
                }
            </ul>
        </td>
        <td style="border: 1px solid #fffffe; border-radius: 8px;">
            @Html.Action("PLayerListByGame", "Game", new { area = "Gaming", id = item.Id })
        </td>
    </tr>
}